/**
 * @author Matthew.He
 */
package com.iot.ic.modules.web.message;

import java.io.Serializable;

import com.google.gson.GsonBuilder;

/**
 * @author Matthew.He
 *
 */
public class AppMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -451747034511625007L;
	
	private String code ; 
	private String message ; 
	
	
	public String toString(){
		return new GsonBuilder().serializeNulls().setDateFormat("yyyy-MM-dd HH:mm:ss").create().toJson(this);
	}


	public AppMessage() {
		super();
	}


	public AppMessage(String code, String message) {
		super();
		this.code = code;
		this.message = message;
	}


	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getMessage() {
		return message;
	}


	public void setMessage(String message) {
		this.message = message;
	}

}
